package com.zhihaoliang.bezier.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding

/**
 * @author 支豪亮
 * @date 2023/1/9 11:06
 * @des 实现到七阶的贝塞尔曲线的展示
 */
abstract class BaseActivity<T:ViewBinding>: AppCompatActivity() {
    lateinit var dataBinding: T

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        dataBinding = initDataBinding()
        setContentView(dataBinding.root)

        initView()
    }

    abstract fun initDataBinding():T

    open fun initView(){

    }
}